package org.example.dao.entity.book;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (Commodity)表实体类
 *
 * @author makejava
 * @since 2023-05-10 10:46:08
 */
@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("`b_commodity`")
public class BCommodity implements Serializable {

    private static final long serialVersionUID = -4990810027542971546L;

    private String id;
    //商品名称
    @TableField("`name`")
    private String name;
    //原价
    private Double originalCost;
    //现价
    private Double currentCost;
    //库存
    @TableField("`stock`")
    private Integer stock = 0;
    //销量
    @TableField("`sales`")
    private Integer sales = 0;
    //商品详情
    @TableField("`details`")
    private String details;
    //排名介绍
    @TableField("`rank`")
    private String rank = "暂无";
    //作者
    @TableField("`writer`")
    private String writer;
    @TableField("`describe`")
    private String describe = "暂无";
    private String countDetails = "暂无";
    @TableField("`isbn`")
    private String isbn;

}

